﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.Xaml.Mvvm
{
    public static class EventBus
    {
        static EventPublisher EventPublisher = new EventPublisher();

        public static IObservable<TEvent> GetEvent<TEvent>()
        {
            return EventPublisher.GetEvent<TEvent>();
        }

        public static void Publish<TEvent>(TEvent e)
        {
            EventPublisher.Publish(e);
        }
    }
}
